package com.zpark.hystrix.feign;

import com.zpark.hystrix.pojo.Ranking;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

@FeignClient(name = "user-service")
public interface IUserServerFeign {
    @PostMapping("/service/all")
    public List<Ranking> findAll();

    @GetMapping("/service/find_id/{id}")
    public Ranking findById(@PathVariable Integer id);
}
